package com.cq.hd.product.controller;

import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.product.api.TbActiveAgentApi;
import com.cq.hd.product.service.TbActiveAgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 活动帮卖团长关联表 前端控制器
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-23
 */
@RestController
public class TbActiveAgentController implements TbActiveAgentApi {

    @Autowired
    private TbActiveAgentService activeAgentService;

    @Override
    public Result<List<Long>> listByActiveId(Long activeId) {
        return ResultGenerator.success(activeAgentService.listByActiveId(activeId));
    }
}
